package com.lottery.ruok.lottrey.retrofitModule.response;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ASUS on 2017/9/11.
 */

public class LotteryStatOneResponse {

    /**
     * server_time : 2017-09-11
     * name : 排列三
     * item_code : pl3
     * color : ff6600
     * item_class : 1
     * issue_no : 2017247
     * prize_num : 9,4,5
     * time : 4899
     * interval : 73800
     * no : 2017247
     * had_open_num :
     * remain_num :
     * open_time : 20:30:00
     * text :
     * onetab : 开奖号码
     * twotab : 号码,总和/形态
     * issue_list : [{"issue_no":"017247","prize_num":"9,4,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"18,大,双"},{"issue_no":"017246","prize_num":"1,1,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"3,小,单"},{"issue_no":"017245","prize_num":"6,2,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017244","prize_num":"8,3,2","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017243","prize_num":"3,3,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017242","prize_num":"8,9,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"20,大,双"},{"issue_no":"017241","prize_num":"9,3,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"21,大,单"},{"issue_no":"017240","prize_num":"5,1,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017239","prize_num":"6,0,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017238","prize_num":"9,2,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"12,小,双"},{"issue_no":"017237","prize_num":"2,1,0","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"3,小,单"},{"issue_no":"017236","prize_num":"5,1,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017235","prize_num":"1,5,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"12,小,双"},{"issue_no":"017234","prize_num":"4,6,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017233","prize_num":"1,8,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017232","prize_num":"8,4,4","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017231","prize_num":"4,2,0","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"6,小,双"},{"issue_no":"017230","prize_num":"6,7,4","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"17,大,单"},{"issue_no":"017229","prize_num":"4,8,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"19,大,单"},{"issue_no":"017228","prize_num":"3,8,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"20,大,双"},{"issue_no":"017227","prize_num":"2,4,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017226","prize_num":"3,3,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017225","prize_num":"4,8,8","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"20,大,双"},{"issue_no":"017224","prize_num":"6,3,4","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017223","prize_num":"4,9,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"19,大,单"},{"issue_no":"017222","prize_num":"7,0,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"14,大,双"},{"issue_no":"017221","prize_num":"4,4,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"15,大,单"},{"issue_no":"017220","prize_num":"6,4,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017219","prize_num":"4,9,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017218","prize_num":"5,7,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"15,大,单"},{"issue_no":"017217","prize_num":"7,9,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"22,大,双"},{"issue_no":"017216","prize_num":"8,7,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017215","prize_num":"2,1,2","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"5,小,单"},{"issue_no":"017214","prize_num":"4,2,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"9,小,单"},{"issue_no":"017213","prize_num":"7,2,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017212","prize_num":"0,0,2","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"2,小,双"},{"issue_no":"017211","prize_num":"1,1,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"8,小,双"},{"issue_no":"017210","prize_num":"9,1,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017209","prize_num":"3,9,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017208","prize_num":"1,0,8","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"9,小,单"},{"issue_no":"017207","prize_num":"6,9,7","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"22,大,双"},{"issue_no":"017206","prize_num":"3,7,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"15,大,单"},{"issue_no":"017205","prize_num":"6,4,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"19,大,单"},{"issue_no":"017204","prize_num":"2,3,2","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"7,小,单"},{"issue_no":"017203","prize_num":"2,4,3","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"9,小,单"},{"issue_no":"017202","prize_num":"4,6,1","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"},{"issue_no":"017201","prize_num":"4,4,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017200","prize_num":"9,3,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"17,大,单"},{"issue_no":"017199","prize_num":"3,3,0","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"6,小,双"},{"issue_no":"017198","prize_num":"7,5,4","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017197","prize_num":"5,9,4","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"18,大,双"},{"issue_no":"017196","prize_num":"4,3,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017195","prize_num":"3,1,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017194","prize_num":"6,2,5","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"13,小,单"},{"issue_no":"017193","prize_num":"8,8,0","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"16,大,双"},{"issue_no":"017192","prize_num":"2,7,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"18,大,双"},{"issue_no":"017191","prize_num":"9,7,8","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"24,大,双"},{"issue_no":"017190","prize_num":"4,4,6","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"14,大,双"},{"issue_no":"017189","prize_num":"9,6,0","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"15,大,单"},{"issue_no":"017188","prize_num":"2,0,9","open_time":"20:30:00","daxiao":"","danshuang":"","zonghe":"11,小,单"}]
     */


    private String server_time;
    private String name;
    private String item_code;
    private String color;
    private int item_class;
    private String issue_no;
    private String prize_num;
    private int time;
    private int interval;
    private String no;
    private String had_open_num;
    private String remain_num;
    private String open_time;
    private String text;
    private String onetab;
    private String twotab;
    private List<IssueListBean> issue_list;
    private ArrayList<ItemListBeans> item_lists = new ArrayList<>();
    private String nums;
    private ArrayList<ItemListBean> item_list;
    private int openning;

    public int getOpenning() {
        return openning;
    }

    public void setOpenning(int openning) {
        this.openning = openning;
    }

    public String getNums() {
        return nums;
    }

    public void setNums(String nums) {
        this.nums = nums;
    }

    public String getServer_time() {
        return server_time;
    }

    public void setServer_time(String server_time) {
        this.server_time = server_time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getItem_code() {
        if(item_code == null){
            return "";
        }
        return item_code;
    }

    public void setItem_code(String item_code) {
        this.item_code = item_code;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getItem_class() {
        return item_class;
    }

    public void setItem_class(int item_class) {
        this.item_class = item_class;
    }

    public String getIssue_no() {
        return issue_no;
    }

    public void setIssue_no(String issue_no) {
        this.issue_no = issue_no;
    }

    public String getPrize_num() {
        return prize_num;
    }

    public void setPrize_num(String prize_num) {
        this.prize_num = prize_num;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getInterval() {
        return interval;
    }

    public void setInterval(int interval) {
        this.interval = interval;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getHad_open_num() {
        return had_open_num;
    }

    public void setHad_open_num(String had_open_num) {
        this.had_open_num = had_open_num;
    }

    public String getRemain_num() {
        return remain_num;
    }

    public void setRemain_num(String remain_num) {
        this.remain_num = remain_num;
    }

    public String getOpen_time() {
        return open_time;
    }

    public void setOpen_time(String open_time) {
        this.open_time = open_time;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getOnetab() {
        return onetab;
    }

    public void setOnetab(String onetab) {
        this.onetab = onetab;
    }

    public String getTwotab() {
        return twotab;
    }

    public void setTwotab(String twotab) {
        this.twotab = twotab;
    }

    public List<IssueListBean> getIssue_list() {
        return issue_list;
    }

    public void setIssue_list(List<IssueListBean> issue_list) {
        this.issue_list = issue_list;
    }

    public ArrayList<ItemListBeans> getItem_lists() {
        return item_lists;
    }

    public ArrayList<ItemListBean> getItem_list() {
        return item_list;
    }

    public void setItem_list(ArrayList<ItemListBean> item_list) {
        this.item_list = item_list;
    }

    public static class IssueListBean {
        /**
         * issue_no : 017247
         * prize_num : 9,4,5
         * open_time : 20:30:00
         * daxiao :
         * danshuang :
         * zonghe : 18,大,双
         */

        private String issue_no;
        private String prize_num;
        private String open_time;
        private String daxiao;
        private String danshuang;
        private String zonghe;

        public String getIssue_date() {
            return issue_date;
        }

        public void setIssue_date(String issue_date) {
            this.issue_date = issue_date;
        }

        private String issue_date;

        public String getIssue_no() {
            return issue_no;
        }

        public void setIssue_no(String issue_no) {
            this.issue_no = issue_no;
        }

        public String getPrize_num() {
            return prize_num;
        }

        public void setPrize_num(String prize_num) {
            this.prize_num = prize_num;
        }

        public String getOpen_time() {
            if(open_time == null){
                return "";
            }
            return open_time + "  ";
        }

        public void setOpen_time(String open_time) {
            this.open_time = open_time;
        }

        public String getDaxiao() {
            return daxiao;
        }

        public void setDaxiao(String daxiao) {
            this.daxiao = daxiao;
        }

        public String getDanshuang() {
            return danshuang;
        }

        public void setDanshuang(String danshuang) {
            this.danshuang = danshuang;
        }

        public String getZonghe() {
            return zonghe;
        }

        public void setZonghe(String zonghe) {
            this.zonghe = zonghe;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj instanceof IssueListBean) {
                IssueListBean lib = (IssueListBean) obj;
                return this.getIssue_no() == lib.getIssue_no();
            }
            return super.equals(obj);
        }
    }

    public static class ItemListBeans{

        /**
         * name : 重庆时时彩
         * code : cqssc
         */

        @SerializedName("name")
        private String nameX;
        private String code;
        private int time;

        public boolean isLeft = false;
        public boolean isRight = false;

        public String getNameX() {
            return nameX;
        }

        public void setNameX(String nameX) {
            this.nameX = nameX;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }
    }

    public static class ItemListBean implements Parcelable{

        /**
         * name : 传统彩
         * items : [{"name":"传统重庆时时彩","code":"ctcqssc","is_hot":"1"},{"name":"传统北京赛车","code":"ctbjpk10","is_hot":"1"},{"name":"传统广东快乐10分","code":"ctgdkl10fz","is_hot":"0"},{"name":"传统广西快乐10分","code":"ctgxkl10fz","is_hot":"0"},{"name":"传统广东11选5","code":"ctgd11x5","is_hot":"0"}]
         */

        @SerializedName("name")
        private String nameX;
        private List<ItemsBean> items;

        public String getNameX() {
            return nameX;
        }

        public void setNameX(String nameX) {
            this.nameX = nameX;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class ItemsBean implements Parcelable{


            /**
             * name : 传统重庆时时彩
             * code : ctcqssc
             * is_hot : 1
             */

            @SerializedName("name")
            private String nameX;
            private String code;
            private String is_hot;
            private int item_class;

            public int getItem_class() {
                return item_class;
            }

            public void setItem_class(int item_class) {
                this.item_class = item_class;
            }

            public String getNameX() {
                return nameX;
            }

            public void setNameX(String nameX) {
                this.nameX = nameX;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getIs_hot() {
                return is_hot;
            }

            public void setIs_hot(String is_hot) {
                this.is_hot = is_hot;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.nameX);
                dest.writeString(this.code);
                dest.writeString(this.is_hot);
            }

            public ItemsBean() {
            }

            protected ItemsBean(Parcel in) {
                this.nameX = in.readString();
                this.code = in.readString();
                this.is_hot = in.readString();
            }

            public static final Creator<ItemsBean> CREATOR = new Creator<ItemsBean>() {
                public ItemsBean createFromParcel(Parcel source) {
                    return new ItemsBean(source);
                }

                public ItemsBean[] newArray(int size) {
                    return new ItemsBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.nameX);
            dest.writeList(this.items);
        }

        public ItemListBean() {
        }

        protected ItemListBean(Parcel in) {
            this.nameX = in.readString();
            this.items = new ArrayList<>();
            in.readList(this.items, getClass().getClassLoader());
        }

        public static final Creator<ItemListBean> CREATOR = new Creator<ItemListBean>() {
            public ItemListBean createFromParcel(Parcel source) {
                return new ItemListBean(source);
            }

            public ItemListBean[] newArray(int size) {
                return new ItemListBean[size];
            }
        };
    }
}
